<?php

namespace maotool\src\test\controller;

use maotool\core\MaoToolApplication;
use maotool\orm\mapper\MapperUtil;
use maotool\util\ControllerUtil;

class SystemApplication extends MaoToolApplication
{

    /**
     * @param $args
     * @return MaoToolApplication
     */
    public static function main($args)
    {
        MapperUtil::scan("maotool:/src/test/resources/**/*.xml");
        ControllerUtil::scan("maotool:/src/test/php/controller/**/*Controller.php");
        return MaoToolApplication::run(new SystemApplication(), $args);
    }

}